<?php
class Dashboard extends CI_Controller{

	function __construct(){
		parent::__construct();
		
		
	}
	
	function index(){
		$sessionData = $this->session->userdata('username');
		if(empty($sessionData)){
			redirect('rootmaster/login');
		}else{
			$data['main_view'] = 'admin/home';
			$this->load->view('admin/template', $data);
		}
	}
}